//
//  TopTableViewHeadView.m
//  yilutongxing
//
//  Created by ios-23 on 17/4/5.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "TopTableViewHeadView.h"
@implementation TopTableViewHeadView

-(void)awakeFromNib{
    [super awakeFromNib];
    
    CGFloat f=(SCREEN_WIDTH-32*2-40*4)/3;
    [self.gan_btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.xinzang_btn.mas_right).with.offset(f);
        make.centerY.equalTo(self.xinzang_btn.mas_centerY);
        make.width.height.equalTo(@40);
    }];
    
    [self.gan_lable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.gan_btn.mas_centerX);
        make.top.equalTo(_gan_btn.mas_bottom).with.offset(10);
    }];
    [self.fei_btn mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.gan_btn.mas_right).with.offset(f);
        make.width.height.equalTo(@40);
        make.centerY.equalTo(self.xinzang_btn.mas_centerY);

    }];
    [self.feiLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self.fei_btn.mas_centerX);
        make.top.equalTo(_fei_btn.mas_bottom).with.offset(10);


    }];
}
- (IBAction)type_btn_click:(UIButton *)sender {
    NSString *str=[NSString stringWithFormat:@"%ld",sender.tag];;
    NSNotificationCenter *center=[NSNotificationCenter defaultCenter];
    
    [center postNotificationName:@"type_btn_click" object:self userInfo:@{@"tag":str}];
  
    
}


@end
